package com.surenpi.jenkins.client.util;

import com.google.common.net.UrlEscapers;

public abstract class EncodingUtils {
   public static String encode(String pathPart) {
      String escape = UrlEscapers.urlPathSegmentEscaper().escape(pathPart);
      return escape;
   }

   public static String encodeParam(String pathPart) {
      return UrlEscapers.urlFormParameterEscaper().escape(pathPart);
   }
}
